<html>
    <body>
        {% if name %}
        <h1>Hello {{ name }}!</h1>
        {% else %}
        <h1>Hello, Flask!</h1>
        {% endif %}
        <ul>
            {% for i in arr %}
            <li>{{i}}</li>
            {% endfor %}
        </ul>
    </body>
</html>